package com.refactor.practice.xutao.model;

import java.util.List;

/**
 * @Author xutao
 * @Date 2024/9/14 14:46
 * @Description: 客户消费模型
 * @Version 1.0
 **/
public class Customer {

    /**
     * 用户code
     */
    private String customerCode;
    /**
     * 积分
     */
    private int score;

    /**
     * 消费积分
     */
    private int consumeScore;

    /**
     * 余额
     */
    private double balance;

    /**
     * 本次租用影片集合
     */
    private List<Movie> movies;

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getConsumeScore() {
        return consumeScore;
    }

    public void setConsumeScore(int consumeScore) {
        this.consumeScore = consumeScore;
    }

    public List<Movie> getMovies() {
        return movies;
    }

    public void setMovies(List<Movie> movies) {
        this.movies = movies;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "customerCode='" + customerCode + '\'' +
                ", score=" + score +
                ", consumeScore=" + consumeScore +
                ", balance=" + balance +
                ", movies=" + movies +
                '}';
    }
}
